findElementsByCssSelector

public abstract List<Element> findElementsByCssSelector(String cssSelector)

Returns an immutable list of the Element objects found in the current search context by the given cssSelector. Returns an empty list if no elements were found.

Parameters

cssSelector

a string that represents the CSS selector

Throws

if the given cssSelector is empty

when this instance is closed